Convenience function that turns an integral into the corresponding Checked instance by using template argument deduction. The hook type may be specified (by default Abort).
static assert(is(typeof(checked(42)) == Checked!int)); assert(checked(42) == Checked!int(42)); static assert(is(typeof(checked!WithNaN(42)) == Checked!(int, WithNaN))); assert(checked!WithNaN(42) == Checked!(int, WithNaN)(42));
See Implementation
Convenience function that turns an integral into the corresponding Checked instance by using template argument deduction. The hook type may be specified (by default Abort).